Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avoid under and overflows in stacking #273

Merged
merged 2 commits into from
Aug 5, 2024

Conversation

avehtari
Copy link
Collaborator

@avehtari avehtari commented Aug 4, 2024

Made the stacking target function and gradient to work with wider range of log-densities. With that high range, it's likely that the optimization is dominated by one or few observations and stacking is not that useful, but at least a hard to interpret error is avoided and the code should be faster, too. Related to #272. Passed tests.

Copy link
Member

@jgabry jgabry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I just pushed one tiny commit to remove some extra parentheses.

@jgabry jgabry merged commit 6e7001e into master Aug 5, 2024
6 checks passed
@jgabry jgabry deleted the avoid-under-and-overflows-in-stacking branch August 5, 2024 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants